package com.service;

import com.bean.entity.Order;
import com.bean.entity.OrderDetail;
import com.bean.vo.OrderVo;
import com.bean.vo.query.OrderQueryVo;
import com.util.PageUtil;

import java.util.List;

/**
 * 订单业务逻辑接口
 */
public interface OrderService {

    /** 查询订单信息 */
    PageUtil<OrderVo> queryOrder(OrderQueryVo orderQueryVo, PageUtil<OrderVo> pa) throws Exception;

    /** 修改订单信息 */
    int modifyOrder(Order order, List<OrderDetail> orderDetails) throws Exception;

    /** 添加订单信息 */
    int addOrder(Order order, List<OrderDetail> orderDetail) throws Exception;
}
